﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CanvasMgr : MonoBehaviour
{
    public Text TexUp = null;
    public Text TexDown = null;
    public Text TexRand = null;
    public GameObject Panel = null;

    public void Show(string texUp,string texDown,string texRand,float durtion) {
        this.CancelInvoke();
        this.Invoke("onShowOver",durtion);
        this.Panel.SetActive(true);
        this.TexUp.text = texUp;
        this.TexDown.text = texDown;
        this.TexRand.text = texRand;
    }

    private void onShowOver() {
        this.Panel.SetActive(false) ;
    }

}
